package com.ruoyi.group.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.group.domain.QuestionClassification;
import com.ruoyi.group.service.QuestionClassificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: CHL  <br/>
 * @ToDo: 问题分类
 * Date: 2022/3/10:14:41  <br/>
 * Description:
 */
@Api(value = "/questionClass",description = "获取问题分类列表")
@RestController
@RequestMapping("/questionClass")
public class QuestionClassificationController {
    @Autowired
    QuestionClassificationService questionClassificationService;

    @ApiOperation(value = "/findAll",httpMethod = "GET",response = AjaxResult.class)
    @GetMapping("/findAll")
    public AjaxResult getInfo(QuestionClassification questionClassification){
        List<QuestionClassification> list = questionClassificationService.findAll();
        return AjaxResult.success(list);
    }

}
